using System;
using System.Drawing;
using System.Windows.Forms;
using Emgu.CV;
using Emgu.CV.Structure;

namespace Domotica.Gazing
{
    public partial class CameraCapture : Form
    {
        private Gaze CameraMouse;

        public CameraCapture()
        {
            InitializeComponent();

            CameraMouse = new Gaze(false);
            CameraMouse.ImageProcessed += new ImageProcessedEventHandler(CameraMouse_ImageProcessed);
        }

        void CameraMouse_ImageProcessed(object sender, ImageProcessedEventArgs e)
        {
            captureImageBox.Image = e.CurrentImage;
        }

        private void btnShowConfig_Click(object sender, EventArgs e)
        {
            CameraMouse.ShowConfig();
        }
    }
}